home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 86
/
(Vol 86) My Disc.iso
/
Games
/
restaurante_1116.swf
/
scripts
/
frame_2
/
DoAction.as
< prev
Wrap
Text File
|
2009-04-16
|
20KB
|
438 lines
function §\x04\x05§()
{
set("\x03",315 % 511 * true);
§§push("\x03");
if("\x01")
{
}
return eval(§§pop());
}
var §\x01§ = 592 + "\x04\x05"();
while(true)
{
if(eval("\x01") == 907)
{
set("\x01",eval("\x01") - 172);
§§push(true);
}
else if(eval("\x01") == 367)
{
set("\x01",eval("\x01") + 203);
§§push("\x0f");
}
else if(eval("\x01") == 822)
{
set("\x01",eval("\x01") - 268);
}
else if(eval("\x01") == 676)
{
set("\x01",eval("\x01") + 277);
§§push(!function §\x04\x05§()
{
set("\x03",315 % 511 * true);
§§push("\x03");
if("\x01")
{
}
return eval(§§pop());
});
}
else if(eval("\x01") == 987)
{
set("\x01",eval("\x01") - 724);
}
else if(eval("\x01") == 735)
{
set("\x01",eval("\x01") - 227);
if(function §\x04\x05§()
{
set("\x03",315 % 511 * true);
§§push("\x03");
if("\x01")
{
}
return eval(§§pop());
})
{
set("\x01",eval("\x01") + 366);
}
}
else
{
if(eval("\x01") == 508)
{
set("\x01",eval("\x01") + 366);
break;
}
if(eval("\x01") == 874)
{
set("\x01",eval("\x01") - 611);
}
else if(eval("\x01") == 570)
{
set("\x01",eval("\x01") + 106);
§§push(eval(function §\x04\x05§()
{
set("\x03",315 % 511 * true);
§§push("\x03");
if("\x01")
{
}
return eval(§§pop());
}));
}
else
{
if(eval("\x01") == 554)
{
set("\x01",eval("\x01") - 405);
set("�%",function()
{
this.$O["$�"](this,arguments);
});
eval("�%").UΤ.$O = function(start_x, start_y)
{
this["6��"] = [];
this[§§constant(5)] = 0;
if(arguments[§§constant(6)])
{
this[§§constant(7)](start_x,start_y);
}
else
{
this[§§constant(7)](0,0);
}
};
eval("�%").UΤ[§§constant(8)] = 10;
eval("�%").UΤ[§§constant(9)] = function()
{
this.$O(0,0);
};
eval("�%").UΤ[§§constant(7)] = function(start_x, start_y)
{
this[§§constant(10)] = {§\§\§constant(11)§:start_x,§\§\§constant(12)§:start_y};
return this;
};
eval("�%").UΤ[§§constant(13)] = function(end_x, end_y)
{
var _loc3_ = end_x - this[§§constant(10)][§§constant(11)];
var _loc2_ = end_y - this[§§constant(10)][§§constant(12)];
var _loc4_ = eval(§§constant(14))[§§constant(15)](_loc3_ * _loc3_ + _loc2_ * _loc2_);
this["6��"][this["6��"][§§constant(6)]] = {§\§\§constant(16)§:_loc4_,§\§\§constant(17)§:this[§§constant(10)],§\§\§constant(18)§:{§\§\§constant(11)§:end_x,§\§\§constant(12)§:end_y},§\§\§constant(19)§:§§constant(20)};
this[§§constant(5)] += _loc4_;
this[§§constant(10)] = {§\§\§constant(11)§:end_x,§\§\§constant(12)§:end_y};
return this;
};
eval("�%").UΤ[§§constant(21)] = eval("�%").UΤ[§§constant(22)] = function(end_x, end_y, arc, dir)
{
if(dir == undefined)
{
dir = §§constant(23);
}
if(arc == undefined)
{
arc = 0.5;
}
if(arc > 1)
{
arc = 1;
}
else if(arc <= 0)
{
return this[§§constant(13)](end_x,end_y);
}
if(dir == §§constant(24))
{
arc = 1 - arc;
}
var _loc3_ = {§\§\§constant(11)§:(this[§§constant(10)][§§constant(11)] + end_x) / 2,§\§\§constant(12)§:(this[§§constant(10)][§§constant(12)] + end_y) / 2};
var _loc5_ = end_x - this[§§constant(10)][§§constant(11)];
var _loc4_ = end_y - this[§§constant(10)][§§constant(12)];
var _loc12_ = eval(§§constant(14))[§§constant(15)](_loc5_ * _loc5_ + _loc4_ * _loc4_);
var _loc8_ = _loc12_ / 2;
var _loc9_ = _loc8_ / eval(§§constant(14))[§§constant(25)](arc * 3.141592653589793);
var _loc11_ = _loc8_ / eval(§§constant(14))[§§constant(26)](arc * 3.141592653589793);
var _loc10_ = eval(§§constant(14))[§§constant(27)](_loc4_,_loc5_) + 1.5707963267948966;
_loc3_[§§constant(11)] += eval(§§constant(14))[§§constant(28)](_loc10_) * _loc9_;
_loc3_[§§constant(12)] += eval(§§constant(14))[§§constant(26)](_loc10_) * _loc9_;
var _loc18_ = eval(§§constant(14))[§§constant(27)](this[§§constant(10)][§§constant(12)] - _loc3_[§§constant(12)],this[§§constant(10)][§§constant(11)] - _loc3_[§§constant(11)]);
var _loc16_ = eval(§§constant(14))[§§constant(27)](end_y - _loc3_[§§constant(12)],end_x - _loc3_[§§constant(11)]);
if(dir == §§constant(23))
{
if(_loc16_ < _loc18_)
{
_loc16_ += 6.283185307179586;
}
}
else if(_loc18_ < _loc16_)
{
_loc18_ += 6.283185307179586;
}
_loc12_ = _loc11_ * eval(§§constant(14))[§§constant(29)](_loc16_ - _loc18_);
this["6��"][this["6��"][§§constant(6)]] = {§\§\§constant(16)§:_loc12_,§\§\§constant(30)§:_loc11_,§\§\§constant(31)§:_loc18_,§\§\§constant(32)§:_loc16_,§\§\§constant(33)§:_loc3_,§\§\§constant(34)§:dir,§\§\§constant(19)§:§§constant(35)};
this[§§constant(5)] += _loc12_;
this[§§constant(10)] = {§\§\§constant(11)§:end_x,§\§\§constant(12)§:end_y};
return this;
};
eval("�%").UΤ[§§constant(36)] = function(end_x, end_y, arc)
{
return this[§§constant(21)][§§constant(37)](this,end_x,end_y,arc,§§constant(24));
};
eval("�%").UΤ[§§constant(38)] = function(con_x, con_y, end_x, end_y)
{
var _loc3_ = this[§§constant(39)](this[§§constant(10)][§§constant(11)],this[§§constant(10)][§§constant(12)],con_x,con_y,end_x,end_y);
this["6��"][this["6��"][§§constant(6)]] = {§\§\§constant(16)§:_loc3_[§§constant(16)],§\§\§constant(17)§:this[§§constant(10)],§\§\§constant(40)§:{§\§\§constant(11)§:con_x,§\§\§constant(12)§:con_y},§\§\§constant(18)§:{§\§\§constant(11)§:end_x,§\§\§constant(12)§:end_y},§\§\§constant(41)§:_loc3_,§\§\§constant(19)§:§§constant(42)};
this[§§constant(5)] += _loc3_[§§constant(16)];
this[§§constant(10)] = {§\§\§constant(11)§:end_x,§\§\§constant(12)§:end_y};
return this;
};
eval("�%").UΤ[§§constant(39)] = function(x1, y1, x2, y2, x3, y3)
{
var _loc2_ = undefined;
var _loc15_ = undefined;
var _loc14_ = undefined;
var _loc12_ = undefined;
var _loc11_ = undefined;
var _loc9_ = undefined;
var _loc8_ = undefined;
var _loc7_ = undefined;
var _loc6_ = undefined;
var _loc29_ = undefined;
var _loc13_ = [];
var _loc5_ = {§\§\§constant(11)§:x1,§\§\§constant(12)§:y1};
var _loc22_ = x2 - x1;
var _loc20_ = y2 - y1;
var _loc21_ = x3 - x2;
var _loc19_ = y3 - y2;
var _loc16_ = eval(§§constant(14))[§§constant(27)];
var _loc18_ = eval(§§constant(14))[§§constant(15)];
var _loc17_ = 0;
var _loc36_ = undefined;
var _loc3_ = undefined;
var _loc10_ = undefined;
var _loc30_ = _loc16_(_loc20_,_loc22_);
var _loc4_ = 1;
while(_loc4_ < this[§§constant(8)])
{
_loc2_ = _loc4_ / this[§§constant(8)];
_loc12_ = x2 + _loc21_ * _loc2_ - (_loc15_ = x1 + _loc22_ * _loc2_);
_loc11_ = y2 + _loc19_ * _loc2_ - (_loc14_ = y1 + _loc20_ * _loc2_);
_loc7_ = _loc15_ + _loc12_ * _loc2_;
_loc6_ = _loc14_ + _loc11_ * _loc2_;
_loc9_ = _loc7_ - _loc5_[§§constant(11)];
_loc8_ = _loc6_ - _loc5_[§§constant(12)];
_loc17_ += _loc29_ = _loc18_(_loc9_ * _loc9_ + _loc8_ * _loc8_);
_loc10_ = _loc16_(_loc11_,_loc12_);
_loc3_ = _loc10_ - _loc30_;
if(_loc3_ > 3.141592653589793)
{
_loc3_ -= 6.283185307179586;
}
else if(_loc3_ < -3.141592653589793)
{
_loc3_ += 6.283185307179586;
}
_loc13_[_loc13_[§§constant(6)]] = {§\§\§constant(16)§:_loc29_,§\§\§constant(17)§:_loc5_,§\§\§constant(18)§:{§\§\§constant(11)§:_loc7_,§\§\§constant(12)§:_loc6_},§\§\§constant(43)§:{§\§\§constant(44)§:_loc30_,§\§\§constant(16)§:_loc3_}};
_loc30_ = _loc10_;
_loc5_ = {§\§\§constant(11)§:_loc7_,§\§\§constant(12)§:_loc6_};
_loc4_ = _loc4_ + 1;
}
_loc9_ = x3 - _loc5_[§§constant(11)];
_loc8_ = y3 - _loc5_[§§constant(12)];
_loc17_ += _loc29_ = _loc18_(_loc9_ * _loc9_ + _loc8_ * _loc8_);
_loc10_ = _loc16_(_loc19_,_loc21_);
_loc13_[_loc13_[§§constant(6)]] = {§\§\§constant(16)§:_loc29_,§\§\§constant(17)§:_loc5_,§\§\§constant(18)§:{§\§\§constant(11)§:x3,§\§\§constant(12)§:y3},§\§\§constant(43)§:{§\§\§constant(44)§:_loc30_,§\§\§constant(16)§:_loc10_ - _loc30_}};
_loc13_[§§constant(16)] = _loc17_;
return _loc13_;
};
eval("�%").UΤ[§§constant(45)] = function(obj, t, s, orient)
{
if(t < 0)
{
t = 0;
}
else if(t > 1)
{
t = 1;
}
var _loc6_ = s[§§constant(16)] * t;
var _loc2_ = undefined;
var _loc3_ = 0;
var _loc4_ = s[§§constant(6)] + 1;
var _loc1_ = 1;
while(_loc1_ < _loc4_)
{
_loc2_ = s[_loc1_ - 1];
if(_loc1_ == _loc4_ || _loc3_ + _loc2_[§§constant(16)] >= _loc6_)
{
break;
}
_loc3_ += _loc2_[§§constant(16)];
_loc1_ = _loc1_ + 1;
}
t = (_loc6_ - _loc3_) / _loc2_[§§constant(16)];
var _loc9_ = _loc2_[§§constant(18)][§§constant(11)] - _loc2_[§§constant(17)][§§constant(11)];
var _loc8_ = _loc2_[§§constant(18)][§§constant(12)] - _loc2_[§§constant(17)][§§constant(12)];
obj[§§constant(11)] = _loc2_[§§constant(17)][§§constant(11)] + _loc9_ * t;
obj[§§constant(12)] = _loc2_[§§constant(17)][§§constant(12)] + _loc8_ * t;
if(orient)
{
obj[§§constant(46)] = (_loc2_[§§constant(43)][§§constant(44)] + _loc2_[§§constant(43)][§§constant(16)] * t) * 180 / 3.141592653589793;
}
};
eval("�%").UΤ[§§constant(47)] = function(obj, t, orient)
{
if(t < 0)
{
t = 0;
}
else if(t > 1)
{
t = 1;
}
var _loc7_ = this[§§constant(5)] * t;
var _loc3_ = undefined;
var _loc4_ = 0;
var _loc5_ = this["6��"][§§constant(6)] + 1;
var _loc2_ = 1;
while(_loc2_ < _loc5_)
{
_loc3_ = this["6��"][_loc2_ - 1];
if(_loc2_ == _loc5_ || _loc4_ + _loc3_[§§constant(16)] >= _loc7_)
{
break;
}
_loc4_ += _loc3_[§§constant(16)];
_loc2_ = _loc2_ + 1;
}
t = (_loc7_ - _loc4_) / _loc3_[§§constant(16)];
switch(_loc3_[§§constant(19)])
{
case §§constant(20):
var _loc11_ = _loc3_[§§constant(18)][§§constant(11)] - _loc3_[§§constant(17)][§§constant(11)];
var _loc10_ = _loc3_[§§constant(18)][§§constant(12)] - _loc3_[§§constant(17)][§§constant(12)];
obj[§§constant(11)] = _loc3_[§§constant(17)][§§constant(11)] + _loc11_ * t;
obj[§§constant(12)] = _loc3_[§§constant(17)][§§constant(12)] + _loc10_ * t;
if(orient)
{
obj[§§constant(46)] = eval(§§constant(14))[§§constant(27)](_loc10_,_loc11_) * 180 / 3.141592653589793;
}
obj[§§constant(48)] = eval(§§constant(14))[§§constant(27)](_loc10_,_loc11_) * 180 / 3.141592653589793;
break;
case §§constant(35):
var _loc12_ = _loc3_[§§constant(31)];
var _loc13_ = _loc3_[§§constant(32)];
var _loc9_ = _loc12_ + (_loc13_ - _loc12_) * t;
obj[§§constant(11)] = _loc3_[§§constant(33)][§§constant(11)] + eval(§§constant(14))[§§constant(28)](_loc9_) * _loc3_[§§constant(30)];
obj[§§constant(12)] = _loc3_[§§constant(33)][§§constant(12)] + eval(§§constant(14))[§§constant(26)](_loc9_) * _loc3_[§§constant(30)];
if(orient)
{
obj[§§constant(46)] = _loc3_[§§constant(34)] != §§constant(23) ? _loc9_ * 180 / 3.141592653589793 - 90 : _loc9_ * 180 / 3.141592653589793 + 90;
}
break;
case §§constant(42):
this[§§constant(45)](obj,t,_loc3_[§§constant(41)],orient);
}
return this;
};
eval("�%").UΤ[§§constant(49)] = function(cen_x, cen_y, a1, a2, r)
{
var _loc5_ = eval(§§constant(14))[§§constant(28)];
var _loc6_ = eval(§§constant(14))[§§constant(26)];
var _loc14_ = eval(§§constant(14))[§§constant(29)](a2 - a1);
var _loc13_ = eval(§§constant(14))[§§constant(50)](_loc14_ / 0.7853981633974483) + 1;
var _loc11_ = _loc14_ / _loc13_;
var _loc12_ = _loc11_ / 2;
var _loc8_ = r / _loc5_(_loc12_);
this[§§constant(7)](cen_x + _loc5_(a1) * r,cen_y + _loc6_(a1) * r);
var _loc3_ = 0;
while(_loc3_ < _loc13_)
{
a2 = a1 + _loc12_;
a1 += _loc11_;
this[§§constant(38)](cen_x + _loc5_(a2) * _loc8_,cen_y + _loc6_(a2) * _loc8_,cen_x + _loc5_(a1) * r,cen_y + _loc6_(a1) * r);
_loc3_ = _loc3_ + 1;
}
return this;
};
eval("�%").UΤ[§§constant(51)] = function(mc)
{
var _loc3_ = this["6��"];
var _loc5_ = _loc3_[§§constant(6)];
var _loc2_ = 0;
while(_loc2_ < _loc5_)
{
switch(_loc3_[_loc2_][§§constant(19)])
{
case §§constant(20):
mc[§§constant(7)](_loc3_[_loc2_][§§constant(17)][§§constant(11)],_loc3_[_loc2_][§§constant(17)][§§constant(12)]);
mc[§§constant(13)](_loc3_[_loc2_][§§constant(18)][§§constant(11)],_loc3_[_loc2_][§§constant(18)][§§constant(12)]);
break;
case §§constant(35):
if(_loc3_[_loc2_][§§constant(34)] == §§constant(23))
{
this[§§constant(49)][§§constant(37)](mc,_loc3_[_loc2_][§§constant(33)][§§constant(11)],_loc3_[_loc2_][§§constant(33)][§§constant(12)],_loc3_[_loc2_][§§constant(31)],_loc3_[_loc2_][§§constant(32)],_loc3_[_loc2_][§§constant(30)]);
}
else
{
this[§§constant(49)][§§constant(37)](mc,_loc3_[_loc2_][§§constant(33)][§§constant(11)],_loc3_[_loc2_][§§constant(33)][§§constant(12)],_loc3_[_loc2_][§§constant(32)],_loc3_[_loc2_][§§constant(31)],_loc3_[_loc2_][§§constant(30)]);
}
break;
case §§constant(42):
mc[§§constant(7)](_loc3_[_loc2_][§§constant(17)][§§constant(11)],_loc3_[_loc2_][§§constant(17)][§§constant(12)]);
mc[§§constant(38)](_loc3_[_loc2_][§§constant(40)][§§constant(11)],_loc3_[_loc2_][§§constant(40)][§§constant(12)],_loc3_[_loc2_][§§constant(18)][§§constant(11)],_loc3_[_loc2_][§§constant(18)][§§constant(12)]);
}
_loc2_ = _loc2_ + 1;
}
return this;
};
break;
}
if(eval("\x01") == 263)
{
set("\x01",eval("\x01") + 523);
§§push("\x0f");
§§push(1);
}
else if(eval("\x01") == 786)
{
set("\x01",eval("\x01") - 419);
var §§pop() = function §\x04\x05§()
{
set("\x03",315 % 511 * true);
§§push("\x03");
if("\x01")
{
}
return eval(§§pop());
};
}
else
{
if(eval("\x01") != 953)
{
if(eval("\x01") == 149)
{
set("\x01",eval("\x01") - 149);
break;
}
break;
}
set("\x01",eval("\x01") - 131);
if(function §\x04\x05§()
{
set("\x03",315 % 511 * true);
§§push("\x03");
if("\x01")
{
}
return eval(§§pop());
})
{
set("\x01",eval("\x01") - 268);
}
}
}
}
}